package com.shy;

import com.shy.bean.TestBean;
import com.shy.config.MainConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);

        TestBean testBean = applicationContext.getBean("testBean", TestBean.class);
        System.out.println(testBean);
    }
}